package com.immer.session;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionIdListener;
import javax.servlet.http.HttpSessionListener;

/**
 *  监听httpsession 变化
 */
public interface RedisSessionListener extends HttpSessionListener,HttpSessionAttributeListener,HttpSessionIdListener {

     /**
      * session 修改属性
      * @param session
      */
     void onAttributeChanged(HttpSession session);

     /**
      * session 手动实效
      *  @param session
      */
     void onInvalidated(HttpSession session);
}
